using System;
using System.Collections.Generic;
using System.Text;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;
using System.Windows.Forms;

namespace THSERP.Modules.ProjectConfig
{
    public class PMPhaseTypesGridControl : THSGridControl
    {
        public override void InitGridControlDataSource()
        {
            ProjectConfigEntities entity = (ProjectConfigEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            BindingSource bds = new BindingSource();
            bds.DataSource = entity.PMPhaseTypesList;
            this.DataSource = bds;

            PMPhaseTypesController objPhaseTypesController = new PMPhaseTypesController();
            DataSet ds = objPhaseTypesController.GetAllObjects();
            entity.PMPhaseTypesList.Invalidate(ds);
        }
    }
}
